module.exports = {
  '/apis/mgt*': {
    // target: "http://gw-dadp-prod.crcloud.com/",
    // target: 'http://127.0.0.1:8089/', //非单体版网关
    // target: "http://dev-standalone-gateway.dadp-fat.crcloud.com/",//单体版网关
    target: 'http://ripplescloud-gateway.dadp-sit.crcloud.com/', // SIT环境网关
    // target: "http://ripplescloud-mgt.dadp-fat.crcloud.com/",
    // target: "http://ripples.ripples-uat.crcloud.com",
    pathRewrite: { '^/apis': '' },
    secure: false,
    changeOrigin: true
  },
  '/apis/*': {
    target: 'http://ripplescloud-gateway.dadp-sit.crcloud.com/', // SIT环境网关
    // target: 'http://ripplescloud-gateway.dadp-fat.crcloud.com/',
    // target: "http://ripples.ripples-uat.crcloud.com",
    pathRewrite: { '^/apis': '' },
    secure: false,
    changeOrigin: true
  },
  '/oauth-service/*': {
    target: 'https://oauth-dadp-sit.test.crcloud.com', // SIT环境oauth服务地址
    // target: 'https://oauth-dadp-uat.test.crcloud.com',// UAT环境oauth服务地址
    pathRewrite: { '^/oauth-service': '' },
    secure: false,
    changeOrigin: true
  },

  // '/security/*': {
  //     target: 'http://ripples-frontend.uat.crpharm.com/security/',
  //     secure: false,
  //     changeOrigin: true
  // },
  '/dev-demo/*': {
    target: 'http://example-ui.uat.crpharm.com/',
    pathRewrite: { '^/dev-demo': '' },
    secure: false,
    changeOrigin: true
  }
}
